package top.continew.wechat.user.service.impl;

import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import top.continew.wechat.user.dto.FriendDTO;
import top.continew.wechat.user.dto.FriendGroupDTO;
import top.continew.wechat.user.mapper.FriendRelationMapper;
import top.continew.wechat.user.service.FriendService;

import java.util.Collections;
import java.util.List;

/**
 * 好友服务实现类
 */
@Service
@RequiredArgsConstructor
public class FriendServiceImpl implements FriendService {

    private final FriendRelationMapper friendRelationMapper;

    @Override
    public List<FriendDTO> getFriendList(Long userId) {
        System.out.println("好友数据" +friendRelationMapper.findFriendsByUserId(userId));
        return friendRelationMapper.findFriendsByUserId(userId);
    }

    @Override
    public List<FriendGroupDTO> getFriendGroupList(Long userId) {
        return Collections.emptyList();
    }

    @Override
    public FriendGroupDTO createFriendGroup(Long userId, String name) {
        return null;
    }

    @Override
    public FriendGroupDTO updateFriendGroup(Long groupId, String name) {
        return null;
    }

    @Override
    public boolean deleteFriendGroup(Long groupId) {
        return false;
    }
}
